package com.miyu.system.pojo.system;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;


/**
 * 主键生成表;
 * @author : miyu
 * @date : 2023-7-23
 */
@ApiModel(value = "主键生成表",description = "")
@Data
@Entity
@Table(name="sys_id_generator")
@TableComment("主键生成表")
public class SysIdGenerator implements Serializable,Cloneable{
    /** 当前表主键;当前表主键 */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @ApiModelProperty(value="当前表主键",notes = "当前表主键")
    @ColumnComment("当前表主键")
    @Column(name = "id", nullable = false,length=11 )
    private Integer id ;
    /** 表名;表名 */
    @ApiModelProperty(value="表名",notes = "表名")
    @ColumnComment("表名")
    @Column(name = "table_name", nullable = true,length=100 )
    private String tableName ;
    /** 当前Id值;当前Id值 */
    @ApiModelProperty(value="当前Id值",notes = "当前Id值")
    @ColumnComment("当前Id值")
    @Column(name = "id_value", nullable = true,length=11 )
    private Integer idValue ;
}